﻿using System.IO;

namespace SKBFirst
{
    class IntOutput : IPaginationSet
    {
        private readonly TextWriter _outputStream;

        public IntOutput(TextWriter outputStream)
        {
            _outputStream = outputStream;
        }

        public void Put(int a)
        {
            _outputStream.Write(a);
            _outputStream.Write(" ");
        }

        public void NextSet()
        {
            _outputStream.WriteLine();
        }
    }
}
